package com.skyline.spot.dao;

import java.util.List;

import com.skyline.base.type.Activity;
import com.skyline.common.bean.Page;
import com.skyline.spot.model.SpotCharacteristic;

public interface SpotCharacteristicDao {
	/**
	 * 
	 * @param spotId 特色所属的spotID
	 * @param spotName
	 * @param spotPortrait
	 * @param ownerId 改特色对应的spot的地主信息
	 * @param ownerNickname
	 * @param ownerPortrait
	 * @param creatorId 创建该特色的用户ID
	 * @param creatorNickName
	 * @param creatorPortrait
	 * @param charateristicTile 特色标题
	 * @param charateristicDetail 具体描述
	 * 	 * @param consume 消费
	 * @param albumId 特色的相册Id，一个特色只有一个相册
	 * @return 新增特色ID号
	 */
	public Long insertCharacteristic(Long spotId,String spotName,String spotPortrait,Long ownerId,String ownerNickname,String ownerPortrait, Long creatorId,
			String creatorNickName, String creatorPortrait,String charateristicTile,
			String charateristicDetail,Integer consume,Long albumId);
	/**
	 * 管理员/地主可以对特色进行修改
	 * @param id
	 * @param charateristicTile
	 * @param charateristicDetail
	 */
	public void updateCharacteristic(Long id,String charateristicTile,String charateristicDetail);
	/**
	 * 改变改特色的状态
	 * @param id
	 * @param activity
	 */
	public void updateCharacteristic(Long id,Activity activity);
	/**
	 * 改变头像
	 * @param id
	 * @param portrait
	 */
	public void updateCharacteristic(Long id,String portrait);
	/**
	 * 特色评分变更
	 * @param id
	 */
	public void updateSpotCharaStar(Long scId, Float star);
	
	/**
	 * 查找同一spotId所有特色
	 * @param spotId
	 * @param activity
	 * @return
	 */
	public List<SpotCharacteristic> queryCharacteristicBySpotrId(Long spotId,Page page,Activity activity);
	/**
	 * 根据ID精确查找
	 * @param id
	 * @param activiy
	 * @return
	 */
	public SpotCharacteristic queryCharacteristicById(Long id,Activity activiy);

}
